package com.sgcc.controller;

import com.sgcc.service.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: springcloud
 * @BelongsPackage: com.sgcc.controller
 * @Author: LiMengshuai
 * @CreateTime: 2019-07-29 14:43
 * @Description: ${Description}
 */
@RestController
public class FeignController {
    @Autowired
    private Service service=null;

    @RequestMapping("/consumer/testFeign/{string}")
    public String testFeign(@PathVariable String string){
        return service.testFegin(string);
    }
}
